const express = require('express');
const router = new express.Router();

/**
 * @param {Object} options
 * @param {} options.ids
 * @throws {Error}
 * @return {Promise}
 */
router.get('/', async(req, res, next) => {
    const options = {
        ids: req.query.ids
    };
    const data = {
        message: 'message',
        payload: {
            content: [
                {
                    packingListId: 'packingListId157',
                    packingListCode: 'packingListCode158',
                    partSaleOrderCode: 'partSaleOrderCode159',
                    partOrderTypeCode: 'partOrderTypeCode160',
                    partOrderTypeName: 'partOrderTypeName161',
                    currency: 1,
                    transportType: 1,
                    pickingListCode: 'pickingListCode162',
                    partCode: 'partCode163',
                    partName: 'partName164',
                    oldPartCode: 'oldPartCode165',
                    oldPartName: 'oldPartName166',
                    quantity: 1,
                    price: 1,
                    totalAmount: 1
                },
                {
                    packingListId: 'packingListId157',
                    packingListCode: 'packingListCode158',
                    partSaleOrderCode: 'partSaleOrderCode159',
                    partOrderTypeCode: 'partOrderTypeCode160',
                    partOrderTypeName: 'partOrderTypeName161',
                    currency: 1,
                    transportType: 1,
                    pickingListCode: 'pickingListCode162',
                    partCode: 'partCode263',
                    partName: 'partName264',
                    oldPartCode: 'oldPartCode165',
                    oldPartName: 'oldPartName166',
                    quantity: 1,
                    price: 1,
                    totalAmount: 1
                },
                {
                    packingListId: 'packingListId167',
                    packingListCode: 'packingListCode168',
                    partSaleOrderCode: 'partSaleOrderCode169',
                    partOrderTypeCode: 'partOrderTypeCode170',
                    partOrderTypeName: 'partOrderTypeName171',
                    currency: 1,
                    transportType: 1,
                    pickingListCode: 'pickingListCode172',
                    partCode: 'partCode173',
                    partName: 'partName174',
                    oldPartCode: 'oldPartCode175',
                    oldPartName: 'oldPartName176',
                    quantity: 1,
                    price: 1,
                    totalAmount: 1
                }
            ]
        }
    };
    res.json(data);
});
module.exports = router;
